import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TagEntity } from '../tag/entities/tag.entity';
import { ArticleController } from './article.controller';
import { ArticleService } from './article.service';
import { ArticleEntity } from './entities/article.entity';
import { ArticleLikeEntity } from './entities/article.like.entity';
import { ArticleTagEntity } from './entities/article.tag.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([ArticleEntity, ArticleTagEntity, TagEntity, ArticleLikeEntity]),
  ],
  controllers: [ArticleController],
  providers: [ArticleService],
})
export class ArticleModule {}
